package com.jsmtr.rms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Base_Data")
public class BaseData {

    @Id
    @Column(nullable = false)
    private Integer id; // ID

    @Column(nullable = false, length = 50)
    private String code; // 编码

    @Column(nullable = false, length = 50)
    private String name; // 名称

    @Column(nullable = false, length = 200)
    private String tcode; // 类型编码

    @Column(nullable = false, length = 50)
    private String tname; // 类型名称

    @Column(nullable = false, length = 20)
    private String pid; // pid

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTcode() {
        return tcode;
    }

    public void setTcode(String tcode) {
        this.tcode = tcode;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

}